package com.eas.biz.dao.statistic.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.statistic.dataobject.SchoolGradeStatisticDO;
import com.eas.biz.dao.statistic.interfaces.SchoolGradeStatisticDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("schoolGradeStatisticDao")
public class SchoolGradeStatisticDaoImpl extends GenericDaoImpl<SchoolGradeStatisticDO> implements
        SchoolGradeStatisticDao {

    public SchoolGradeStatisticDO selectById(long id) {
        return selectById("SchoolGradeStatistic.selectById", id);
    }

    public long insert(SchoolGradeStatisticDO object) {
        return insert("SchoolGradeStatistic.insert", object);
    }

    public int deleteById(long id) {
        return deleteById("SchoolGradeStatistic.deleteById", id);
    }

    public int update(SchoolGradeStatisticDO object) {
        return update("SchoolGradeStatistic.update", object);
    }

    public List<SchoolGradeStatisticDO> selectByQuery(BaseQuery query) {
        return selectByQuery("SchoolGradeStatistic.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("SchoolGradeStatistic.countByQuery", query);
    }

    public int deleteByQuery(BaseQuery query) {
        return deleteByQuery("SchoolGradeStatistic.deleteByQuery", query);
    }

}
